<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>8002:端口</title>
<link rel="stylesheet" th:href="@{/moon/css/bootstrap.css}" />
<link rel="stylesheet" th:href="@{/icon/css/font-awesome.min.css}" />
</head>
<body class="bg-b">
	<div class="container-fluid" id="app">
		<div class="row">
			<div class="col text-center bg-danger text-white shadow">cookieSessionLogin</div>
		</div>
		<div class="form-group mt-2 form-inline">
			<span class="badge badge-light">账号:</span><input
				class="form-control form-control-sm" id="account"> <span
				class="badge badge-light">密码:</span><input
				class="form-control form-control-sm" id="password">
			<button class="btn btn-info ml-2" onclick="login()">登录</button>
		</div>
	</div>
	<!-- js -->
	<script th:src="@{/moon/js/jquery.js}"></script>
	<script th:src="@{/moon/js/vue.js}"></script>
	<script th:src="@{/layer/layer.js}"></script>
	<script th:inline="javascript">
		//
		
		function login(){
			$.post("/yao/Bloger/loginBlogerByNameAndPassword",{account:$("#account").val(),password:$("#password").val()},(data)=>{
				if(data=="success"){
					alert("成功！");
					window.location.href='/';
				}else{
					alert("失败！");
				}
			})
		}
	</script>
</body>
</html>